<div id="city-popup-inner">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'admin-area-city-form',
        //'action' => '/main/ajax/contactJoin',
        'enableClientValidation' => true,
        'htmlOptions' => array('class' => 'form', 'novalidate' => 'novalidate'),
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>
    <div>
        <?php echo $form->error($model, 'city_title'); ?>
        <?php echo $form->error($model, 'city_price'); ?>  
        <?php echo $form->error($model, 'city_description'); ?>  
    </div>
    <div id="city-popup-content">				
        <p>Добавить город</p>
        <div id="city-popup-content-inner">				
            <input type="hidden" name="city-action" value="add">
            <div id="popup-left-container">
                <?php echo $form->textField($model, 'city_title', array('placeholder' => 'Название города', 'class' => 'text-field')); ?>               

            </div>
            <div id="popup-right-container">
                <?php echo $form->textField($model, 'city_price', array('placeholder' => 'Цена за сутки', 'class' => 'text-field')); ?>
            </div>
            <?php echo $form->textArea($model, 'city_description', array('placeholder' => 'Краткий SEO текст для города (до 1000 знаков)', 'class' => 'text-area')); ?>
        </div>
        <div class="clear"></div>
    </div>
    <div id="city-popup-inner-footer">
        <button id="city-popup-add-button" class="single-button">Сохранить</button>
    </div>
    <?php $this->endWidget(); ?>
</div>
